PROC=testPool
CPP=main.cpp threadpool.cpp taskpool.cpp threadpoolmanager.cpp

FLAG= -fPIC -shared
CFLAG=  ${FLAG}
GPP= g++ -g 

OBJ=main.o threadpool.o taskpool.o threadpoolmanager.o


.PHONY:ALL
all:${PROC}

HEAD= -I. 

LIB= 

${PROC}: 
	g++ -g $(CPP) ${HEAD}  -lpthread -o $@
	#valgrind --tool=memcheck --leak-check=full --track-origins=yes --show-reachable=yes ./test
#libconnectpool.so: connectpool.o simplesock.o
#	${GPP} ${FLAG} $< ${HEAD}  -o $@ 
#	-rm -f *.o

threadpool.so: threadpool.cpp taskpool.cpp threadpoolmanager.cpp
	${GPP} $(CFLAG) $^ ${HEAD}  -o $@

#install:
#	cp libcompress.so ../libcomp/so/
#	cp *.so ../libcomp/so/

clean:
	-rm -f *.o
	-rm -f ${PROC}
